class BallControl extends paper.Behaviour {

	private _speed: number = 5;
	public starNode: two.BallItem;
	public _cam: egret3d.Camera;

	onAwake() {
	}

	onUpdate(dt) {
		this.transform.rotateOnAxis(this.transform.getUp(), this._speed * dt * Math.PI / 180);

		if (this.starNode) {
			let _pos = this._cam.worldToStage(this.transform.getPosition().clone());
			this.starNode.x = _pos.x;
			this.starNode.y = _pos.y;
		}
	}
}